package unidad4;

public class ReadNum {

	public static void main(String[] args)throws Exception {

		System.out.println("Please enter a number and press Enter Key");

		String numString="";          
		char a=' ';

		while(a != '\n'){

			a = (char)System.in.read();
			numString = numString + a;

		}

		numString = numString.trim();

		int number = Integer.parseInt(numString);
		System.out.println(number);

	}

}
